import request from "../utils/request";
//删除实验室
export const deleteLaboratory = id => {
    return request({
        method: 'GET',
        url: '/laboratory/deleteLaboratory?id=' + id
    })
}
//实验室分页
export const laboratoryPage = data => {
    return request({
        method: 'POST',
        url: '/laboratory/findPageLaboratory',
        data
    })
}
//查看当前实验室下面的实验员
export const downLaboratory = data => {
    return request({
        method: 'POST',
        url: '/laboratory/findPageLaboratoryNum',
        data
    })
}
//移除实验室
export const getOut = id => {
    return request({
        method: 'GET',
        url: '/laboratory/deleteById?id=' + id
    })
}
//添加实验室
export const addRoom = data => {
    return request({
        method: 'POST',
        url: '/laboratory/addLaboratory',
        data
    })
}
//查询所有教师
export const getAllTeacher = () => {
    return request({
        method: 'GET',
        url: '/user/getTheaterList'
    })
}
//编辑实验室
export const editRoom = data => {
    return request({
        method: 'POST',
        url: '/laboratory/editLaboratory',
        data
    })
}


//实验培训资源类别
//添加
export const AddCultivateTowClass = data => {
    return request({
        method: 'POST',
        url: '/cultivateTowClass/add',
        data
    })
}

//修改
export const EditCultivateTowClass = data => {
    return request({
        method: 'POST',
        url: '/cultivateTowClass/edit',
        data
    })
}


//删除
export const getDeleteById = id => {
    return request({
        method: 'GET',
        url: '/cultivateTowClass/deleteById?id=' + id
    })
}
//类别
export const getAllFindList = () => {
    return request({
        method: 'GET',
        url: '/cultivateTowClass/findList'
    })
}


//分页
export const getAllFindPage = data => {
    return request({
        method: 'POST',
        url: '/cultivateTowClass/findPage',
        data
    })
}
//实验指导

export const AddGuideClass = data => {
    return request({
        method: 'POST',
        url: '/guideClass/add',
        data
    })
}

//修改
export const EditGuideClass = data => {
    return request({
        method: 'POST',
        url: '/guideClass/edit',
        data
    })
}


//删除
export const getGuideClassDeleteById = id => {
    return request({
        method: 'GET',
        url: '/guideClass/deleteById?id=' + id
    })
}
//类别
export const getGuideClassFindList = () => {
    return request({
        method: 'GET',
        url: '/guideClass/findList'
    })
}


//分页
export const getGuideClassPage = data => {
    return request({
        method: 'POST',
        url: '/guideClass/findPage',
        data
    })
}

//案例

export const AddRecipeClass = data => {
    return request({
        method: 'POST',
        url: '/recipeClass/add',
        data
    })
}

//修改
export const EditRecipeClass = data => {
    return request({
        method: 'POST',
        url: '/recipeClass/edit',
        data
    })
}


//删除
export const getRecipeClassDeleteById = id => {
    return request({
        method: 'GET',
        url: '/recipeClass/deleteById?id=' + id
    })
}
//类别
export const getRecipeClassFindList = () => {
    return request({
        method: 'GET',
        url: '/recipeClass/findList'
    })
}


//分页
export const getRecipeClassPage = data => {
    return request({
        method: 'POST',
        url: '/recipeClass/findPage',
        data
    })
}